package cn.tedu.order.management.dao.persist.mapper;

import cn.tedu.order.management.pojo.entity.Order;
import cn.tedu.order.management.pojo.vo.OrderAdminListVO;
import cn.tedu.order.management.pojo.vo.OrderStaffListVO;
import cn.tedu.order.management.pojo.vo.UserOrderVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper extends BaseMapper<Order> {

   int addcnmd(Order order);

   List<OrderAdminListVO> listForAdmin();

   UserOrderVO listUserById(Long id);

   int deleteById(Long id);

    List<UserOrderVO> list(Long userId);

    int updateState(Order order);

    List<OrderStaffListVO> listForStaff(Long id);

}
